package validation;

import dbmanager.DBManager;

public class Iscontainsstring implements Validation
{
	DBManager db;
	String Validationvalue;
	public String getMessage()
	{
		return " must contain " +Validationvalue;
	}
	public void setDbmanager(DBManager database) 
	{
		this.db = database;
	}
	public boolean validate(String Value) 
	{
		return false;
	}
	public boolean validate(String Value, String ConditionValue) 
	{
		if(Value.contains(ConditionValue))
			return true;
		else
			return false;
	}
	public boolean validate(String Value, String ConditionValue, String Refvalue) 
	{
		this.Validationvalue = ConditionValue;
		return validate(Value,ConditionValue);
	}
	public void setBasicvalue(String value) {
		// TODO Auto-generated method stub
		
	}
}
